package com.gscitysfy.cus.drain.modules.warning.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 气象图片存储记录
 * </p>
 *
 * @author zhangqiang
 * @since 2022-10-22 15:05:53
 */
@Getter
@Setter
@TableName("drain_weather_img")
public class DrainWeatherImg implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 图片类型 字典
     */
    private String type;

    /**
     * 图片名称
     */
    private String name;

    /**
     * 图片来源地址
     */
    private String fromUrl;

    /**
     * 图片存储地址
     */
    private String path;

    /**
     * 图片采集时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date collectTime;

    /**
     * 图片对应时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date imgTime;

    /**
     * nginx访问地址
     */
    private String url;

    /**
     * 预警附件id
     */;
    private Long fileId;

    @TableField(exist = false)
    private String  cmFileName;
    @TableField(exist = false)
    private String cmFilePreviewUrl;
}
